<template>
  <basic-container>
    <basic-header title="用户列表"/>
    <apply-table 
      :action="action"
      :viewBtn="false"
      :editBtn="false"
      :deleteBtn="false"
      :addBtn="false"
    >
      <template 
        slot-scope="{ row }"
        slot="applyMenu"
      >
        <el-button 
          plain
          size="small"
          @click.stop="handleView(row)"
        >详情</el-button>
      </template>
    </apply-table>
  </basic-container>
</template>
<script>
import ApplyTable from '@/components/ApplyTable'
import actionTypes from '@/const/action'
export default {
  name: 'user',
  components: { ApplyTable },
  data() {
    return {
      action: actionTypes.USER_CORE_MANAGE
    }
  },
  methods: {
    handleView(row) {
      this.$router.push(`/wel/userDetail/${row.id}`)
    }
  }
}
</script>

